package net.skyedu.bean;

import java.io.Serializable;

/**
 * 学员交费表
 * @author Jason
 *
 * date 2013-2-28
 */
public class StuFee implements Serializable{
	
	private static final long serialVersionUID = 9181928415710713656L;
	private Integer stuId;
	private Integer claId;
	private String stuName;
	private String terName;
	private String schName;
	private String subName;
	private String graName;
	private String claName;
	private String teaName;
	/**应收金额*/
	private Double shouldFee;
	/**实际交费金额*/
	private Double actualFee;
	//折扣
	private Double discount;
	/**交费方式 1现金2转账3支票*/
	private Integer payType;
	/**交费时间*/
	private String payTime;

	/**已交费课次*/
	private Integer claNum;
	/**收款人*/
	private String receiver;
	/***
	 * 未缴清续费
	 */
    private double unAcceptFee;
    //已上课次
    private Integer alreadyClaNum;
    //剩余课次
    private Integer surplusClaNum;
    
    //单次课费用
    private double feeperClass;
    
    public double getUnAcceptFee() {
		return shouldFee-actualFee;
	}
	public void setUnAcceptFee(double unAcceptFee) {
		this.unAcceptFee = unAcceptFee;
	}
	public Integer getAlreadyClaNum() {
		return alreadyClaNum;
	}
	public void setAlreadyClaNum(Integer alreadyClaNum) {
		this.alreadyClaNum = alreadyClaNum;
	}
	public Integer getSurplusClaNum() {
		surplusClaNum=claNum-alreadyClaNum;
		return surplusClaNum;
	}
	public void setSurplusClaNum(Integer surplusClaNum) {
		this.surplusClaNum = surplusClaNum;
	}
	public double getFeeperClass() {
		return feeperClass;
	}
	public void setFeeperClass(double feeperClass) {
		this.feeperClass = feeperClass;
	}
	public double getSurplusbefore() {
		return surplusbefore;
	}
	public void setSurplusbefore(double surplusbefore) {
		this.surplusbefore = surplusbefore;
	}
	public double getAlreadyFee() {
		return alreadyFee;
	}
	public void setAlreadyFee(double alreadyFee) {
		this.alreadyFee = alreadyFee;
	}
	public double getSurplusFee() {
//		surplusFee=actualFee-getAlreadyFee();
		return surplusFee;
	}
	public void setSurplusFee(double surplusFee) {
		this.surplusFee = surplusFee;
	}
	//往期结余
    private double surplusbefore;
    
    //消耗费用
    private double alreadyFee;
    //
    private double surplusFee;
    
    
	
	public Double getDiscount() {
		return this.discount;
	}
	public void setDiscount(Double discount) {
		this.discount = discount;
	}
	public Integer getClaId() {
		return this.claId;
	}
	public void setClaId(Integer claId) {
		this.claId = claId;
	}
	public Integer getStuId() {
		return this.stuId;
	}
	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}
	public String getStuName() {
		return this.stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public String getTerName() {
		return this.terName;
	}
	public void setTerName(String terName) {
		this.terName = terName;
	}
	public String getSchName() {
		return this.schName;
	}
	public void setSchName(String schName) {
		this.schName = schName;
	}
	public String getSubName() {
		return this.subName;
	}
	public void setSubName(String subName) {
		this.subName = subName;
	}
	public String getGraName() {
		return this.graName;
	}
	public void setGraName(String graName) {
		this.graName = graName;
	}
	public String getClaName() {
		return this.claName;
	}
	public void setClaName(String claName) {
		this.claName = claName;
	}
	public String getTeaName() {
		return this.teaName;
	}
	public void setTeaName(String teaName) {
		this.teaName = teaName;
	}
	public Double getShouldFee() {
//		double temp=claNum*feeperClass*discount;
		return shouldFee;
	}
	public Double getShouldFee(int claNum) {
//		shouldFee=claNum*feeperClass*discount;
		return shouldFee;
	}
	public void setShouldFee(Double shouldFee) {
		this.shouldFee = shouldFee;
	}
	public Double getActualFee() {
		return this.actualFee;
	}
	public void setActualFee(Double actualFee) {
		this.actualFee = actualFee;
	}
	public Integer getPayType() {
		return this.payType;
	}
	public void setPayType(Integer payType) {
		this.payType = payType;
	}
	public String getPayTime() {
		return this.payTime;
	}
	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}
	public Integer getClaNum() {
//		claNum=(int)(actualFee/(discount*feeperClass));
		return claNum;
	}
	public void setClaNum(Integer claNum) {
		this.claNum = claNum;
	}
	public String getReceiver() {
		return this.receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	
	
}
